package com.younion.business;

import java.util.List;
import java.util.Map;

import com.younion.common.exception.BaseException;
import com.younion.common.paginator.Paginator;
import com.younion.vo.API_AdvertisingVO;
import com.younion.vo.AdvertisingVO;

public interface IAdvertisingService {
	
	/**
	 * 向数据库中插入一条记录
	 * 
	 * @param voObject
	 *            与数据库中记录对应的值对象
	 * @return type : AdvertisingVO 返回插入操作是否成功，操作失败返回null
	 */
	public Integer save(AdvertisingVO voObject) throws BaseException;
	
	/**
	 * 获取记录数
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public int getCountByMap(Map paramMap) throws BaseException;

	/**
	 * 分页查找
	 * 
	 * @param paramMap
	 * @param curPage
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List get(Map paramMap, Paginator paginator) throws BaseException;
	
	public AdvertisingVO selectAdvertisingById(Map paramMap) throws BaseException;
	
	public boolean updateAdvertisingByMap(Map paramMap) throws BaseException;
	
	public boolean deleteAdvertisingById(Map paramMap) throws BaseException;
	
	public boolean deleteAdvertisingByIds(List list) throws BaseException;
	
	public int selectMaxTop() throws BaseException;
	
	public List<AdvertisingVO> selectByIds(List list) throws BaseException;
	
	public void updateStateByIds(Map map) throws BaseException;
	
	public void updateTopById(Map map) throws BaseException;
	
	public List<API_AdvertisingVO> getApiAdvertisement(Map map) throws Exception;
	
	public boolean deleteImgByCustomerIds(List<String> customerIds , String path) throws BaseException;
}
